﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebSurvey.Default" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <link href="CSS/core.css" rel="stylesheet" type="text/css" />
 
      <script src="../Scripts/jquery-1.4.2.min.js"></script>
    <script src="../Scripts/angular.min.js"></script>
    <script src="JS/core.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
// <![CDATA[

// ]]>
    </script>
</head>
<body ng-app="SurveyApp">
<div ng-controller="SurveyCtrl">
<div id="dialog" ng-show="message" center-dialog="message" class="shadow">
    <div class="message" ng-bind-html-unsafe="message"></div>
    <div style="text-align:center"><input type="button" value="אישור" ng-click="closeDialog()" /></div>
</div>
<div id="waitDialog" ng-show="waitMessage" center-dialog="waitMessage" class="shadow">
    <div class="message">{{waitMessage}}</div>
    <img alt="" id='imgWait' src="Images/ajax-loader.gif" />
</div>
<div id="dialog-overlay" ng-show="message || waitMessage"></div>
<table class="main" cellpadding="0" cellspacing="0">
<tr style="background-color:#EDEDED">
<td class="logo">&nbsp;</td>
<td class="title">תיאור הפוליגון</td>
</tr>
<tr>
<td colspan="2">
   <table width="800px" style="padding-top:25px" >
    <tr>
        <td class="Details" style="padding-bottom:15px">משיב/ה</td>
        <td style="padding-bottom:15px" ><div style="height:20px" class="Div">{{user}}</div></td>
    </tr>
     <tr>
        <td class="Details" style="padding-bottom:15px">תהליך</td>
        <td style="padding-bottom:15px"><div style="height:40px" class="Div">{{process.Name}}</div></td>
    </tr>
    <tr>
        <td class="Details" style="padding-bottom:15px">תיאור התהליך</td>
        <td style="padding-bottom:15px"><div style="height:70px" class="Div">{{process.Desc}}</div></td>
    </tr>
   </table>
</td>
</tr>
<tr>
    <td colspan="2">
        <table style="padding-top:30px">
            <tr>
                <td rowspan="3" class="Number" style="width:10px">1.</td>
                <td rowspan="3" class="Question" style="width:300px">קטגוריות סיכונים בזיקה - בחר עד 3 קטגוריות סיכון,
                לפי רמת הזיקה שלהן לתהליך.
                </td>
                <td style="padding-bottom:10px">
                <select ng-model="process.CategoryID1" ng-options="o.value as o.text for o in CategoryOptions" style="width:441px">
                <option></option>
                </select>
                </td>
            </tr>
             <tr>
                <td style="padding-bottom:10px"><select ng-model="process.CategoryID2" ng-options="o.value as o.text for o in CategoryOptions" style="width:441px">
                <option></option>
                </select></td>
            </tr>
             <tr>
                <td style="padding-bottom:10px"><select ng-model="process.CategoryID3" ng-options="o.value as o.text for o in CategoryOptions" style="width:441px">
                <option></option>
                </select></td>
            </tr>
        </table>
    </td>
</tr>
<tr>
    <td colspan="2">
        <table style="padding-top:30px">
            <tr>
                <td class="Number" style="width:10px">2.</td>
                <td colspan="4" class="Number" style="width:800px">השפעת סיכונים שורשיים- ציין/יעד כמה להערכתך תושפע החברה בהיבטים המצויינים כתוצאה מהתממשות סכונים שונים הטמונים בתהליך.</td>
            </tr>
            <tr>
            <td></td>
            <td class="Details">השפעה פיננסית</td>
            <td class="Details">השפעה תדמיתית</td>
            <td class="Details">השפעה רגולטורית</td>
            <td class="Details">השפעה תפעולית</td>
            </tr>
            <tr>
            <td></td>
            <td>
                <select style="width:170px" ng-model="process.RiskID1" ng-options="o.value as o.value + ' - ' + o.text for o in RiskOptions">
                <option></option>
                </select>
            </td>
            <td>
                <select style="width:170px" ng-model="process.RiskID2" ng-options="o.value as o.value + ' - ' + o.text for o in RiskOptions">
                <option></option>
                </select>
            </td>
            <td>
                <select style="width:170px" ng-model="process.RiskID3" ng-options="o.value as o.value + ' - ' + o.text for o in RiskOptions">
                <option></option>
                </select>
            </td>
            <td>
                <select style="width:170px" ng-model="process.RiskID4" ng-options="o.value as o.value + ' - ' + o.text for o in RiskOptions">
                <option></option>
                </select>
            </td>
            </tr>
        </table>
    </td>
</tr>
<tr>
<td colspan="2">
<table style="padding-top:30px">
<tr>
<td class="Number" style="width:10px">3.</td>
<td class="Question" style="width:570px">סבירות -הערך/י את רמת הסבירות להתממשות סיכונים אשר ישפיעו מהותית על התהליך בעתיד הנראה לעין.</td>
<td>
    <select ng-model="process.Reason" ng-options="o.value as o.value + ' - ' + o.text for o in ReasonabilityOptions" style="width:170px">
    <option></option>
    </select> 
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table style="padding-top:30px">
<tr>
<td class="Number" style="width:10px">4.</td>
<td class="Question" style="width:570px">סביבת הבקרה- הערך/י עד כמה אפקטיבית סביבת הבקרה העוטפת את התהליך</td>
<td>
    <select style="width:170px" ng-model="process.Env" ng-options="o.value as o.value + ' - ' + o.text for o in EnvironmentOptions">
    <option></option>
    </select> 
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<td style="width:10px"></td>
<td colspan="4"  class="Number" style="padding-bottom:5px;padding-top:5px">בחר/י עד 3 רכיבי חולשה בסביבת הבקרה לפי רמת השפעתם. נדרש לפחות רכיב חולשה אחד.</td>
</tr>
<tr>
<td></td>
<td style="width:150px;padding-left:30px">
    <select ng-model="process.Comp1" ng-options="o.value as o.text for o in ComponentOptions" style="width:170px">
    <option></option>
    </select>
</td>
<td style="width:150px;padding-left:30px">
    <select ng-model="process.Comp2" ng-options="o.value as o.text for o in ComponentOptions" style="width:170px">
    <option></option>
    </select>
</td>
<td style="width:150px">
    <select ng-model="process.Comp3" ng-options="o.value as o.text for o in ComponentOptions" style="width:170px">
    <option></option>
    </select>
</td>
<td style="width:150px"></td>
</tr>
</table>
</td>
</tr>
<tr ng-show="process">
<td colspan="2" style="padding-top:25px">
<table>
<tr style="width:800px">
<td><input type="button" value="לתהליך הקודם" ng-disabled="!prevProcessID" ng-click="prev()" /></td>
<td><input type="button" value="שמור" ng-click="save()"/></td>
<td><input type="button" value="סיום" ng-click="done()"/></td>
<td><input type="button" value="לתהליך הבא" ng-disabled="!nextProcessID" ng-click="next()"/></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
